// 定义系统主题色
$tColor: #4BCFCA;
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background: #f6f6f6;
}

p,ul,li,div,input {
	padding: 0;
	margin: 0;
	border: none;
	list-style: none;
}
input:focus, button:focus, textarea:focus {
	    outline: none
}
input, textarea{
		&::-webkit-input-placeholder {
	        color: #999;
		}
		&::-moz-placeholder {
	        color: #999;
		}
		&::-ms-input-placeholder {
	        color: #999;
		}
}
textarea {
    border: none;
}
:before, :after {
	box-sizing: border-box;
}
input:focus, button:focus {
	    outline: none
}


input:focus {
	outline-offset: 0;
	outline: none;
}

li,ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

// 分页器样式
.my-bullet {
   display: block;
   width: 10px;
   height: 1px;
   background: #ccc;
   margin-left: 5px;
 }
.swiper-pagination-bullet-active {
   background: #69AFFF;
}

// 按钮样式
.button {
	height: 36px;
	font-size: 16px;
	color: #4c5b71;
	border: 1px solid #4c5b71;
	background: #fff;
	line-height: 36px;
	text-align: center;
	border-radius: 5px;
	width: 164px;
}
.button-confirm {
	background: #4c5b71;
	color: #fff;
}

// confirm弹框字体颜色
.weui-dialog__btn_primary {
  color: #108ee9 !important;
}
.button-disable {
	background: #ccc;
	border: 1px solid #ccc;
	color: #fff;
}
img {
	width: 100%;
	height: 100;
}

::-webkit-scrollbar{
  display:none;
}

// 广告位样式
.article-wrapper {
  padding: 15px 16px;
  background: #fff;
  & .article {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #eee;
    &:not(:last-child){
      margin-bottom: 15px;
    }
    & .img-area {
      width: 100%;
      height: 120px;
      &>img {
        width: 100%;
        height: 100%;
      }
    }
    & .content-area {
      padding: 0 12px;
      background: #fff;
      & .title {
        margin-top: 7px;
        margin-bottom: 7px;
        width: 100%;
        font-size: 16px;
        line-height: 22px;
        color: #333;
      }
      & .message {
        font-size: 12px;
        color: #999;
        line-height: 17px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }
      & .button-area {
        width: 100%;
        height: 35px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        & .left-icon {
          border: 1px solid #69aeff;
          font-size: 11px;
          line-height: 16px;
          height: 16px;
          padding: 0 5px;
          color: #69aeff;
          box-sizing: content-box;
        }
        & .right {
          font-size: 12px;
          line-height: 17px;
          color: #333;
          &>span {
            color: #69aeff;
          }
        }
      }
    }
  }
}
// 路由过度
// .slide-fade-enter-active {
//   transition: all .3s ease;
// }
// .slide-fade-leave-active {
//   transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
// }
// .slide-fade-enter, .slide-fade-leave-to
// /* .slide-fade-leave-active for below version 2.1.8 */ {
//   transform: translateX(10px);
//   opacity: 0;
// }

.toast {
    position: fixed;
    left:50%;
    transform:translate(-50%,-50%) scale(1);
    word-wrap:break-word;
    padding:10px;
    text-align: center;
    z-index:9999;
    font-size:.3rem;
    max-width:80%;
    color: #fff;
    border-radius: 5px;
    background: rgba(0,0,0,0.7);
    overflow: hidden;
}
.toast.middle{
    top:50%;
}
.toast.top{
    top:10%;
}
.toast.bottom{
    top:90%;
}
.fade-enter-active, .fade-leave-active {
  transition: transform .5s
}
.fade-enter, .fade-leave-active {
  transform:translate(-50%,-50%) scale(0);
}

i {
  font-style: normal;
}

// 订单详情头部样式
.detail-area {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0 16px;
    margin-top: 12px;
    & .detail-head {
      width: 100%;
      height: 40px;
      &>div {
        height: 40px;
        line-height: 40px;
        &:first-child {
          float: left;
          font-size: 12px;
          color: #666;
        }
        &:last-child {
          float: right;
          font-size: 11px;
          color: #bbb;
        }
      }
    }
    & .detail-content {
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
      overflow: hidden;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 16px 0;
      width: 100%;
      & .img-area {
        width: 72px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        float: left;
        &>img {
          width: 100%;
        }
      }
      & .content-area {
        float: left;
        width: 264px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: 16px;
        & .title {
          height: 16px;
          max-width: 256px;
          display:block;
          white-space:nowrap; 
          overflow:hidden; 
          text-overflow:ellipsis;
          font-size: 14px;
          line-height: 16px;
          color: #333;
        }
        & .price {
          height: 14px;
          line-height: 14px;
          font-size: 12px;
          color: #666;
          margin-top: 8px;
        }
        & .sku {
          margin-top: 21px;
          width: 100%;
          & .sku-item {
            height: 20px;
            line-height: 20px;
            font-size: 12px;
            background: #eee;
            float: left;
            color: #666;
            padding: 0 10px;
            border-radius: 5px;
            margin-bottom: 5px;
            &:not(:last-child){
              margin-right: 10px;
            }
          }
        }
      }
    }
    & .state-item {
      width: 100%;
      height: 48px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      &>div {
        font-size: 12px;
        line-height: 16px;
        color: #999;
        padding: 0 5px;
        &:first-child {
          width: 72px;
          border-right: 1px solid #eee;
          color: #4C5B71;
        }
        &:nth-child(2) {
          padding-left: 10px;
          width: 270px;
        }
      }
      &>i {
        display: block;
        width: 15px;
        height: 15px;
        background: url('../assets/img/comm/login_arrow_small@3x.png') 0 0 no-repeat;
        background-size: 50%;
        background-position: 64% 64%;
      }
    }
    & .operation-area {
      min-height: 48px;
      line-height: 48px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      &>div {
        border: 1px solid #4C5B71;
        font-size: 12px;
        padding: 0 10px;
        border-radius: 5px;
        height: 22px;
        line-height: 22px;
        margin-left: 12px;
      }
    }
 }
// vux弹框样式
 .weui-toast {
    min-height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px 40px;
    &>p {
      font-size: 14px;
      line-height: 16.8px;
      margin: 0;
    }
    &>i {
      display: none;
    }
 }


 // 商家联系方式样式
 .no-permission {
    background: #fff;
    padding: 16px;
    margin-top: 11px;
    & .title {
      font-size: 14px;
      line-height: 16px;
      height: 16px;
      color: #333;
    }
    & .merchant-info {
      margin-top: 0.32rem;
      border: 1px solid rgba(105,174,255,0.3);
      border-radius: 5px;
      padding: 1px 16px;
      & .info-item {
        height: 39px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        &:not(:last-child) {
          border-bottom: 1px solid #eee;
        }
        &>div {
          font-size: 11px;
          color: #666;
          &.phone {
            color: #69afff;
          }
          &:first-child {
            width: 72px;
          }
          &:last-child {
            width: 248px;
            display:block;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
          }
        }
      }
    }
    & .info {
      width: 100%;
      height: 14px;
      line-height: 14px;
      font-size: 12px;
      color: #999;
      margin-top: 15px;
    }
  }